From: Florian Eckert Date: Wed, 19 Mar 2025 09:20:25 +0000 (+0100) Subject: luci-app-keepalived: do not restart keepalived on user notification change X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=af1064e927ed5b3b1bacea008495f814b9bd064c;p=project%2Fluci.git luci-app-keepalived: do not restart keepalived on user notification change The content of the file is executed at the next event, so it is not necessary to reload keepalived if the user notification has changed. Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js index 613971d9e3..c12a63be8e 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js @@ -16,8 +16,6 @@ return view.extend({ return fs.write('/etc/keepalived.user', value).then(function(rc) { document.querySelector('textarea').value = value; ui.addNotification(null, E('p', _('Contents have been saved.')), 'info'); - - return fs.exec('/etc/init.d/keepalived', [ 'reload' ]); }).catch(function(e) { ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); });